package com.ugrow.ugrowcommunity.activity.warranty;

import android.content.Intent;
import android.os.Bundle;
import android.widget.TextView;

import androidx.appcompat.app.AppCompatActivity;

import com.ugrow.ugrowcommunity.R;

public class CatActivity extends AppCompatActivity {

    private NoteBean noteBean;
    private TextView etTitle, etContent;

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_cat);
        etTitle = findViewById(R.id.et_title);
        etContent = findViewById(R.id.et_content);
        initData();
    }

    private void initData() {
        Intent intent = getIntent();
        noteBean = (NoteBean) intent.getSerializableExtra("noteBean");
        if (noteBean != null) {
            etTitle.setText(noteBean.getTitle());
            etContent.setText(noteBean.getContent());
        }
    }
}